#find metis 
# METIS_LIB -> /usr/local/lib/libmetis.a 
# METIS_INCLUDE -> /usr/local/include/metis.h 
# GKLIB_INCLUDE -> /home/cong/cpp-grape/metis-5.1.0/GKlib/ 
# METIS_FOUND -> bool 

find_library(METIS_LIB
        NAME metis 
        PATHS /usr/local/lib/
        )
find_path(METIS_INCLUDE
        metis.h
        /usr/local/include
        )
find_path(GKLIB_INCLUDE
        GKlib.h
        /home/cong/cpp-grape/metis-5.1.0/GKlib 
        )
if(METIS_LIB AND METIS_INCLUDE AND GKLIB_INCLUDE)
        MESSAGE("** METIS FOUND AT **")
        MESSAGE("METIS_LIB -> ${METIS_LIB}")
        MESSAGE("METIS_INCLUDE -> ${METIS_INCLUDE}")
        MESSAGE("GKLIB_INCLUDE -> ${GKLIB_INCLUDE}")
        # GKlib is linked into libmetis.a 
elseif(METIS_LIB AND METIS_INCLUDE AND GKLIB_INCLUDE)
        MESSAGE(FATAL "** METIS NOT FOUND **")
ENDIF(METIS_LIB AND METIS_INCLUDE AND GKLIB_INCLUDE)


